package com.cf.api.service.impl;

import com.cf.api.dao.ReportGenDao;
import com.cf.api.service.ReportGenService;
import com.md.drcs.dicom.entity.ReportEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional("otherTransactionManager")
public class ReportGenServiceImpl implements ReportGenService {

    @Autowired
    private ReportGenDao reportGenDao;


    @Override
    public List<ReportEntity> findByStudyIds(List<Long> studyIds) {
        return reportGenDao.findByStudyIds(studyIds);
    }

}
